//
//  PickNumDaLeTouListViewController.h
//  PlayBall
//
//  Created by Huawen Liu on 12-6-13.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddBaseViewController.h"
#import "JddRandomSelectNumView.h"
#import "JddDaLeTouListItemCell.h"
#import "JddQueryDiscountOperation.h"
#import "JddBuyLotteryOperation.h"
#import "JddQueryUserInfoOperation.h"
#import "JddAlertView.h"
#import "JddAgreeLotteryForFooterView.h"

@interface JddPickNumDaLeTouListViewController : JddBaseViewController<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, RandomSelectNumViewDelegate, DaLeTouListItemCellDelegate,UIGestureRecognizerDelegate,JddAlertViewDelegate, BuyLotteryOperationDelegate,UIAccelerometerDelegate>{
@private
    JddAgreeLotteryForFooterView *agreeLotteryForFooterView;
    NSMutableArray *numberArray;
    JddRandomSelectNumView *randomSelectNumberDialog;
    NSInteger     noteAmount;
    JddAlertView    *alert1;
    NSMutableString *discountNo;
    NSNumber        *discountAmount;
}

SHARED_VIEW_CONTROLLER_DECLARE(JddPickNumDaLeTouListViewController);

@property (strong, nonatomic) IBOutlet UITableView *numberListTable;
@property (strong, nonatomic) IBOutlet UITextField *multipleTextField;
@property (strong, nonatomic) IBOutlet UIButton *buybutton;
@property (strong, nonatomic) IBOutlet UILabel     *noteAmountLabel;
@property (strong, nonatomic) IBOutlet UILabel     *multipleLabel;
@property (strong, nonatomic) IBOutlet UILabel     *moneyAmountLabel;
@property (strong, nonatomic) IBOutlet UIScrollView*bgScrollView;

- (void)numberFromArray:(NSArray*)inNumberArray;

//-(IBAction)checkValue:(id)sender;
- (IBAction)handleSingleTapGesture:(UITapGestureRecognizer*)sender;
- (IBAction)continueSelectNumberButtonClicked:(id)sender;
- (IBAction)continueRandomSelectNumberButtonClicked:(id)sender;
- (IBAction)clearListButtonClicked:(id)sender;
- (IBAction)plusButtonClicked:(id)sender;
- (IBAction)minusButtonClicked:(id)sender;
- (IBAction)buyButtonClicked:(id)sender;
-(void)destoryView;
- (IBAction)coBuyBtnClick:(id)sender;


@end
